package com.ucode.crm.vo;

import com.ucode.crm.mode.Customer;

@SuppressWarnings("serial")
public class CustomerVo extends Customer {
    /**
     * 数据操作权利:0->负责人1->读写2->只读
     */
    private Integer power;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 负责人
     */
    private String ownerUser;
    
    public CustomerVo(){
        super();
    }

    public CustomerVo(Customer customer ,Integer power, String createUser, String ownerUser) {
        super();
        this.power = power;
        this.createUser = createUser;
        this.ownerUser = ownerUser;
        if(customer != null){
            this.setId(customer.getId());
            this.setCreatedTime(customer.getCreatedTime());
            this.setUpdatedTime(customer.getUpdatedTime());
            this.setDeltag(customer.getDeltag());
            this.setSysinit(customer.getSysinit());
            this.setName(customer.getName()); 
            this.setLevel(customer.getLevel());
            this.setSource(customer.getSource());
            this.setIndustry(customer.getIndustry());
            this.setFollowCount(customer.getFollowCount());
            this.setDealCount(customer.getDealCount());
            this.setBusinessCount(customer.getBusinessCount());
            this.setLastTime(customer.getLastTime());
            this.setNextTime(customer.getNextTime());
            this.setWebsite(customer.getWebsite());
            this.setRemark(customer.getRemark());
            this.setProvinceId(customer.getProvinceId());
            this.setCityId(customer.getCityId());
            this.setAreaId(customer.getAreaId());
            this.setAddress(customer.getAddress());
            this.setLockStatus(customer.getLockStatus());
            this.setMobile(customer.getMobile());
            this.setTelephone(customer.getTelephone());
            this.setSex(customer.getSex());
            this.setCname(customer.getCname());
            this.setBirthday(customer.getBirthday());
            this.setContactsId(customer.getContactsId());
            this.setCreateUserId(customer.getCreateUserId());
            this.setOwnerUserId(customer.getOwnerUserId());
        }
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getOwnerUser() {
        return ownerUser;
    }

    public void setOwnerUser(String ownerUser) {
        this.ownerUser = ownerUser;
    }
    
}
